-- GENERATED SPELL FOR [Darkspear Spear Thrower] --


function spell0_27560(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(12024,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27560', 5286, 1)
end

function spell1_27560(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(38556,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27560', 1500, 1)
end

function Sorts_27560(pUnit, Event)
local choix_sorts_27560 = math.random(0, 1)
if choix_sorts_27560 == 0 then
pUnit:RegisterEvent('spell0_27560', 1, 1)
end
if choix_sorts_27560 == 1 then
pUnit:RegisterEvent('spell1_27560', 1, 1)
end
end

function mob27560_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27560', math.random(1500, 3000), 1)
end

function mob27560_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27560_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27560_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27560, 1, 'mob27560_Action')
RegisterUnitEvent(27560, 2, 'mob27560_Leave')
RegisterUnitEvent(27560, 3, 'mob27560_Kill')
RegisterUnitEvent(27560, 4, 'mob27560_Die')
